package com.yonyou.pmclouds.comprehensiveacceptance.entity;

import com.yonyou.pmclouds.basecom.entity.SuperVO;
import com.yonyou.pmclouds.inspectitem.entity.InspectItemVO;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.Size;
import java.math.BigDecimal;
import java.util.Date;
@Data
@Table(name = "pm_comprehensive_acceptance")
public class ComprehensiveAcceptanceVO extends SuperVO{
	// 制单人姓名
    public static String CREATOR_NAME = "creatorName";
    // 制单人
    public static String CREATOR = "creator";
    //项目
    public static String PK_PROJECT = "pk_project";
    //检查标准
    public static String PK_INSPECTSTANDARD = "pk_inspectstandard";
    //单据状态
    public static String BILLSTATUS = "billstatus";
    //施工单位
    public static String PK_CONSTRUCTIONUNIT = "pkConstructionunit";

    public static String ACCEPTANCETIME = "acceptanceTime";

	@Id
    private String pkComprehensiveAcceptance;

    private String pkProject;
    @Size(min = 1, message="检查标准不能为空!")
    private String pkInspectstandard;
    private String pkConstructionunit;

    private byte acceptanceStatus;

    private Date acceptanceTime;

    private String position;

    private BigDecimal longitude;

    private BigDecimal latitude;

    private String billType;

    private byte billstatus;

    private String memo;

    private String pkTenant;

    private String creator;

    private Date creationtime;

    private String modifier;

    private Date modifytime;
    
    //----------显示字段--------------
    @Transient
    private String inspectstandardName;
    @Transient
    private String constructionName;
    @Transient
    private String projectName;
    @Transient
    private String projectCode;
    // 图片
    @Transient
    private String[] pictures;
    // 检查项
    @Transient
    private InspectItemVO[] inspectitems;
    // 制单人
    @Transient
    private String creatorName;
    @Transient
    private int totItemNum;
    @Transient
    private int passNum;
    @Transient
    private int unPassNum;
    @Transient
    private BigDecimal passRate;
    @Transient
    private String orgName;
    @Transient
    private String strCreationtime;
    @Transient
    private String strAcceptanceTime;
    @Transient
    private String qualification_rate;
    @Transient
    private String strBillstatus;
    @Transient
    private String manager;
    @Transient
    private String managerName;
}